import 'package:flutter/material.dart';

class ListViewBuilderPage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
        appBar: new AppBar(
          title: new Text('ListView测试页面'),
          backgroundColor: Colors.blue,
        ),    //将参数当作页面标题

        body: new ListView.builder(
          itemCount: 50,
          padding: new EdgeInsets.all(5.0),
          itemExtent: 50.0,
          itemBuilder: (BuildContext context,int index){
            return new Text("text ${index+1}");
          },
        ),

    );
  }
}